<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
	<title><?php

	if ( is_page() or is_single() ) {
		the_title();

	} elseif ( is_category() ) {
		printf( __('Category Archive for &lsquo;%s&rsquo;','yui-theme'), single_cat_title('', false) );

	} elseif ( function_exists('is_tag') and function_exists('single_tag_title') and is_tag() ) {
		printf( __('Tag Archive for &lsquo;%s&rsquo;','yui-theme'), single_tag_title('', false) );

	} elseif ( is_archive() ) {
		printf( __('%s Archive','yui-theme'), wp_title('', false) );

	} elseif ( is_search() ) {
		printf( __('Search Results for &lsquo;%s&rsquo;','yui-theme'), attribute_escape(get_search_query()) );
	}

	if ( !is_home() and !is_404() ) {
		_e(' at ','yui-theme');
	}
	
	bloginfo('name');

	?></title>
	<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url');?>/combine-css.php?version=<?php require(dirname(__FILE__) . '/combine-css.php'); ?>" />
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url');?>" />
	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
	<?php wp_get_archives('type=monthly&format=link'); ?>
	<?php wp_head();?>
</head>
<body class="<?php sandbox_body_class();?>">
	<!--The whole page container-->
	<div id="doc4" class="yui-t6">
		<div id="hd"><!-- header -->
			<div id="topnav" class="yui-g"><!--top func nav-->
				<?php
					if(isset($_COOKIE['comment_author_'.COOKIEHASH])) {
						$lastCommenter = $_COOKIE['comment_author_'.COOKIEHASH];
						echo __("Welcome Back, ",'yui-theme') . $lastCommenter . __("!",'yui-theme');
					} else {
						_e("Welcome, Guest!",'yui-theme');
					}
					wp_register(' |','|');
					wp_loginout();
				?>
			</div><!-- /top func nav-->
			<div class="yui-ge"><!--logo bar-->
				<div class="yui-u first">
					<span id="blogtitle"><a accesskey="1" href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></span>
					<span id="description"><?php bloginfo('description'); ?></span>
				</div>
				<div class="yui-u">
					<?php include(TEMPLATEPATH . '/searchform.php'); ?>
				</div>
			</div><!--/logo bar-->
			<!--page navi bar-->
			<div class="yui-g">
				<ul id="pagenav">
					<li class="page_item <?php if(is_home()) echo 'current_page_item';?>"><a href="<?php bloginfo('home');?>" title="<?php _e('Home','yui-theme');?>"><span><?php _e('Home','yui-theme');?></span></a></li>
					<?php 
						global $yui_options;
						wp_list_pages('title_li=&exclude=' . $yui_options['yui_pages_to_exclude']);
					?>
				</ul>
			</div>
			<div class="yui-g">
				<div id="subpage"></div>
			</div>
			<!--page navi bar-->
		</div><!-- /header -->